
import './assets/style/index.less';
import GameControl from './models/GameControl';
const gameControl = new GameControl()

//重置按钮
document.getElementById("resetButton")!.onclick=()=>{
    document.location.reload();
}


(document.getElementsByClassName("operateUp")[0] as HTMLElement)!.onclick=()=>{
    gameControl.direction="Up"
}

(document.getElementsByClassName("operateRight")[0] as HTMLElement)!.onclick=()=>{
    gameControl.direction="Right"
}

(document.getElementsByClassName("operateDown")[0] as HTMLElement)!.onclick=()=>{
    gameControl.direction="Down"
}

(document.getElementsByClassName("operateLeft")[0] as HTMLElement)!.onclick=()=>{
    gameControl.direction="Left"
}
